package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.UserFeedbackMapper;
import com.ruoyi.boss.domain.UserFeedback;
import com.ruoyi.boss.service.IUserFeedbackService;

/**
 * 用户反馈信息Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class UserFeedbackServiceImpl implements IUserFeedbackService 
{
    @Autowired
    private UserFeedbackMapper userFeedbackMapper;

    /**
     * 查询用户反馈信息
     * 
     * @param feedbackId 用户反馈信息主键
     * @return 用户反馈信息
     */
    @Override
    public UserFeedback selectUserFeedbackByFeedbackId(Long feedbackId)
    {
        return userFeedbackMapper.selectUserFeedbackByFeedbackId(feedbackId);
    }

    /**
     * 查询用户反馈信息列表
     * 
     * @param userFeedback 用户反馈信息
     * @return 用户反馈信息
     */
    @Override
    public List<UserFeedback> selectUserFeedbackList(UserFeedback userFeedback)
    {
        return userFeedbackMapper.selectUserFeedbackList(userFeedback);
    }

    /**
     * 新增用户反馈信息
     * 
     * @param userFeedback 用户反馈信息
     * @return 结果
     */
    @Override
    public int insertUserFeedback(UserFeedback userFeedback)
    {
        return userFeedbackMapper.insertUserFeedback(userFeedback);
    }

    /**
     * 修改用户反馈信息
     * 
     * @param userFeedback 用户反馈信息
     * @return 结果
     */
    @Override
    public int updateUserFeedback(UserFeedback userFeedback)
    {
        return userFeedbackMapper.updateUserFeedback(userFeedback);
    }

    /**
     * 批量删除用户反馈信息
     * 
     * @param feedbackIds 需要删除的用户反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteUserFeedbackByFeedbackIds(Long[] feedbackIds)
    {
        return userFeedbackMapper.deleteUserFeedbackByFeedbackIds(feedbackIds);
    }

    /**
     * 删除用户反馈信息信息
     * 
     * @param feedbackId 用户反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteUserFeedbackByFeedbackId(Long feedbackId)
    {
        return userFeedbackMapper.deleteUserFeedbackByFeedbackId(feedbackId);
    }
}
